<style scoped>
  .switch-box{
    position: fixed;
    top:0;
    left: 0;
    width: 100%;
    height:100%;
    z-index:10;
    background-color: #FFFFFF;
  }
  .loader-inner{
    position: absolute;
    top:40%;
    left: 50%;
    margin-left: -2rem;
  }
  @-webkit-keyframes ball-pulse-sync {
    0% {
      -webkit-transform: translateY(0);
      transform: translateY(0);
    }
    33% {
      -webkit-transform: translateY(.375rem);
      transform: translateY(.375rem);
    }

    66% {
      -webkit-transform: translateY(-.375rem);
      transform: translateY(-.375rem); }

    100% {
      -webkit-transform: translateY(0);
      transform: translateY(0); } }
  @keyframes ball-pulse-sync {
    0% {
      -webkit-transform: translateY(0);
      transform: translateY(0);
    }
    33% {
      -webkit-transform: translateY(.375rem);
      transform: translateY(.375rem); }

    66% {
      -webkit-transform: translateY(-.375rem);
      transform: translateY(-.375rem); }

    100% {
      -webkit-transform: translateY(0);
      transform: translateY(0); }
  }
  .ball-pulse-sync > div:nth-child(0) {
    -webkit-animation: ball-pulse-sync 0.6s 0s infinite ease-in-out;
    animation: ball-pulse-sync 0.6s 0s infinite ease-in-out;
  }
  .ball-pulse-sync > div:nth-child(1) {
    -webkit-animation: ball-pulse-sync 0.6s 0.07s infinite ease-in-out;
    animation: ball-pulse-sync 0.6s 0.07s infinite ease-in-out;
  }
  .ball-pulse-sync > div:nth-child(2) {
    -webkit-animation: ball-pulse-sync 0.6s 0.14s infinite ease-in-out;
    animation: ball-pulse-sync 0.6s 0.14s infinite ease-in-out;
  }
  .ball-pulse-sync > div:nth-child(3) {
    -webkit-animation: ball-pulse-sync 0.6s 0.21s infinite ease-in-out;
    animation: ball-pulse-sync 0.6s 0.21s infinite ease-in-out;
  }
  .ball-pulse-sync > div {
    background-color: #0c80ba;
    width: .8rem;
    height: .8rem;
    border-radius: 100%;
    margin: .05rem;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    display: inline-block;
  }
  .isactive{
    background-color: rgba(255,255,255,0.6);
  }
</style>

<template>
    <div class="switch-box" v-show="switchebox">
      <div class="loader-inner ball-pulse-sync">
        <div></div>
        <div></div>
        <div></div>
      </div>
    </div>
</template>

<script>
    export default{
        name:"loader",
        props:["switchebox"],
        data(){
            return {

            }
        },
        mounted(){

        },
        methods: {},
        computed: {},
        watch: {},
        components: {},
    }
</script>
